<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">      
<body>

<ui:composition template="/templates/Plantilla.xhtml">
 <ui:define name="content">
  <h:form class="form">
	  <h3> Modificar Frio Calor</h3>
	  <p:separator/>
	  <p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />			
	  <p:panel>
		  <h:panelGrid columns="3" >
				<h:outputText for="inputNumeroSerie" value="Serie Nº:"/>
				<p:inputText id="inputNumeroSerie" value = "#{frioCalorEdit.frioCalor.numeroDeSerie}"
					label="Nº de Serie"/>
				<p:message for="inputNumeroSerie"/>
				
				<h:outputText for="inputMarca" value="Marca:"/>
				<p:inputText id="inputMarca"  value = "#{frioCalorEdit.frioCalor.marca}" required="true"
					label ="Marca"/>
				<p:message for="inputMarca"/>
				
				<h:outputText for="inputModelo" value="Modelo:"/>
				<p:inputText id="inputModelo" value = "#{frioCalorEdit.frioCalor.modelo}" required="true" 
					label="Modelo"/>
				<p:message for="inputModelo"/>
				
				<h:outputText value="Agua de Red:"/>
				<p:selectBooleanCheckbox value="#{frioCalorEdit.aguaDeRed}"/>
					
		  </h:panelGrid>
	  </p:panel>
	  <p:panel style="text-align: center">
		<p:commandButton value="Guardar" action = "#{frioCalorEdit.editarFrioCalor(frioCalorEdit.frioCalor)}"
		icon="ui-icon-disk" ajax="false"/>
		<p:commandButton value="Cancelar" action = "#{frioCalorEdit.cancelar}"
		icon="ui-icon-close" ajax="false"  immediate="true"/>
	  </p:panel>
	  
  </h:form>
		
</ui:define>

</ui:composition>
		
</body>

</html>